const path = require("path");
module.exports = {
	publicPath: "/",
	productionSourceMap: false,
	configureWebpack: (config) => {
		Object.assign(config, {
			resolve: {
				extensions: [".js", ".json", ".vue", ".scss", ".css"],
				alias: {
					"@": path.resolve(__dirname, "./src"),
				},
			},
		});
	},
	devServer: {
		open: false,
		proxy: {
			'/back': {
				target: 'http://121.4.149.47:8091',
				changOrigin: true,  //允许跨域
				pathRewrite: {
					'^/back': '/'
				}
			},
		}
	},
};